﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QModels
{

	public class PigeCageDto
	{
		public int GeLongGuanLi {  get; set; }
		public int ChuLan {  get; set; }

		public int ChaDan {  get; set; }

		public int ZhaoDan {  get; set; }

		public int ChaChu {  get; set; }

		public int TiaoBing { get; set; }

		public int TaoTai {  get; set; }

		public int BuLan {  get; set; }

		public int KongZhigeLong {  get; set; }

		public int JiangKangJianCha {  get; set; }

		public int TempErr {  get; set; }

	}

	public class PigeonConditionCount
	{
		public int total { get; set; }
	}
	public class PigeonCondition
	{
		public string? Region { get; set; }
		public int HasRuGe {  get; set; }
		public int HasEgg {  get; set; }

		public int CageStatus {  get; set; }

		public string? CageNumber {  get; set; }

		/// <summary>
		/// 0:所有温度
		/// 1:OK温度
		/// 2:异常温度
		/// </summary>
		public int TempStatus { set; get; }

		public bool IsFeedError {  get; set; }
		
	}
	public class PigeonCageQuery
	{
		
		public string Id {  get; set; }
		/// <summary>
		/// 栋
		/// </summary>
		public string Building { get; set; }
		/// <summary>
		/// 列
		/// </summary>
		public string Arrange { get; set; }
		/// <summary>
		/// 组
		/// </summary>
		public string Group { get; set; }
		/// <summary>
		/// 号
		/// </summary>
		public string Number { get; set; }
		public string CageNumber => $"{Building}-{Arrange}-{Group}-{Number}";

		public int? PigeonCount {  get; set; }
		public DateTime? PigeonDate { get; set; }

		public int? RuGeCount {  get; set; }
		public DateTime? ChildDate { get; set; }
		public int? RuGeDay { get; set; }

		public int? EggCount {  get; set; }
		public DateTime? EggDate { get; set; }
		public int? EggDay { get; set; }
		public bool? IsFertilization {  get; set; }

		public decimal? DailyGrams { get; set; }

		public string? Temperature {  get; set; }
		/// <summary>
		/// 是否异常温度
		/// </summary>
		[NotMapped]
		public bool IsAbnormal {  get; set; }

		[NotMapped]
		public string? background {  get; set; }

		/// <summary>
		/// 第一次应该喂料
		/// </summary>
		public int F1 {  get; set; }
		/// <summary>
		/// 第二次应该喂料
		/// </summary>
		public int F2 {  get; set; }
		/// <summary>
		/// 第三次应该喂料
		/// </summary>
		public int F3 { get; set; }

		/// <summary>
		/// 第一次实际喂料
		/// </summary>
		public int FT1 {  get; set; }
		/// <summary>
		/// 第二次实际喂料
		/// </summary>
		public int FT2 { get; set; }
		/// <summary>
		/// 第三次实际喂料
		/// </summary>
		public int FT3 {  get; set; }


	}
}
